<?php

/**
 * Adminhtml Product Vidoe Testimonial Tab Controller
 */
class AW_Imagetest_Admin_ProductController extends Mage_Adminhtml_Controller_Action
{
    /**
     * Product Selector grid for AJAX request
     */
    public function gridAction()
    {
        $productId  = (int) $this->getRequest()->getParam('product_id');
        $product    = Mage::getModel('catalog/product')
            ->setStoreId($this->getRequest()->getParam('store', 0));
        if ($productId) {
            $product->load($productId);
        }
        $this->loadLayout();
        $this->getResponse()->setBody(
            $this->getLayout()->createBlock('imagetest/adminhtml_catalog_product_edit_tab_imagetest_image_grid')->setProduct($product)->toHtml()
        );
    }
    
}
